remove duplicates from sorted array in place

visit shbcf.ru